<script type="text/javascript" >
    stFacebookToolbox.load_tooltip();
    stFacebookToolbox.on_submitform('#settingForm');
    jQuery("a[rel^='prettyPhoto']").prettyPhoto();
</script>
<div class="w100p bgl">
    <div class="w100p bgr p5b">
          <ul class="menu_right">
                      <li class="current">
                          <a href="javascript:void(0);" onclick="stFacebookToolboxcustom.loadPage('wall_contact_form');" id="wall_contact_form">Wall contact form</a>
                    </li>
                    <li>
                          <a href="javascript:void(0);" onclick="stFacebookToolboxcustom.loadPage('facebook_image_map');" id="facebook_image_map">Facebook tab image map</a>
                    </li>
          </ul>
                <p></p>
        <form class="stform" id="settingForm" action="<?php echo admin_url('/admin.php?page=' . $config['plugin_name'] . '&action=' . $current_action) ?>" method="post" >
            <a href="#inline_demo" rel='prettyPhoto'><img src="<?php echo $config['imagesUrl']?>info2.png" style="float:right;margin-top: -54px;" /></a>
                <ul>
                    <li>
                        <label><?php _e('Receive email', $config['plugin_name'])?>:</label>
                        <div>                            
                           <input title="Email" value="<?php echo $option['receive_email'] ?>" class="" name="data[receive_email]" id="receive_email" type="text" tabindex="1" />
                        </div>
                        <br clear="both" />
                    </li>
                    <li>
                        <label><?php _e('Subject', $config['plugin_name'])?>:</label>
                        <div>                            
                           <input title="Subject" value="<?php echo $option['subject'] ?>" class="" name="data[subject]" id="subject" type="text" tabindex="2" />
                        </div>
                        <br clear="both" />
                    </li>
                    <li>
                        <label><?php _e('Email template', $config['plugin_name'])?>:</label>
                        <div>
                        <textarea title="Email template"  name="data[email_template]" rows="10" cols="30"><?php echo $option['email_template'] ?></textarea>
                            
                        </div>
                        <br clear="both" />
                    </li>
                    <li>
                        <label><?php _e('Active', $config['plugin_name'])?>:</label>
                        <div>
                           <input <?php echo $option['active'] == '1'? 'checked':''?> title="Active" value="1" class="" name="data[active]" id="active" type="checkbox" tabindex="7" />
                        </div>
                        <br clear="both" />
                    </li>
                     <li>
                        <input type="submit" value="Submit"/>
                    </li>


                </ul>
        </form>
    </div>
</div>
<div id="inline_demo" style="display:none;">
                        <span style="color: red; font-weight: bold; font-size: 11pt;">Help</span>
						<p></p>
						<table border="0" cellpadding="0" cellspacing="5" align="center" width="100%">
						<?php foreach($config['help']['facebook_contact_form'] as $row):?>
						<tr>
							<td style="width:230px;" valign="top">
							<?php echo $row['title'];?><span style="float:right;">:</span>
							</td>
							<td valign="top" style="padding-left:5px;">
								<?php echo $row['help'];?>
							</td>
						</tr>
						<?php endforeach;?>

	</table>
	</div>